<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>qq延时提示符</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .page {
            width: 1360px;
            height: 800px;
            background: url(../img/bg.png) no-repeat;
            margin: 0 auto;
            position: relative;
        }

        .right {
            width: 300px;
            height: 500px;
            background: url(../img/qq.png) no-repeat;
            position: absolute;
            right: 15px;
            top: 20px;
        }

        #head {
            width: 50px;
            height: 50px;
            background: url(../img/link.png)  0 -50px no-repeat;
           float: left;
            margin-top: 270px;
            margin-left: 7px;
        }
        a#head:hover {
            background-position: 0px 1px;
        }
        .left{
            width: 280px;
            height: 334px;
            background: url(../img/prompt.png) no-repeat;
            top: 250px;
            left: -280px;
            display: none;
            position: absolute;
        }
    </style>
</head>

<body>
    <div class="page">
        <div class="right">
        <a href="#" id="head"></a>
        <div class="left"></div>
    </div>
    </div>
    <script>
      var headDom=document.getElementById("head");
      var leftDom=document.querySelector(".left");
      headDom.onmouseover=function(){
        leftDom.style.display="block"
      }
      headDom.onmouseout=function(){
        leftDom.style.display="none"
      }
    </script>
</body>

</html>